<script>
//     window.location.href='/index/index';
// </script>
<?php
// $ipaddress = $_SERVER['REMOTE_ADDR'] == '::1' ? '127.0.0.1' : $_SERVER['REMOTE_ADDR'];
// $lang = strtolower($_SERVER['HTTP_ACCEPT_LANGUAGE']);
// $login_addr_arra = json_decode(file_get_contents('https://apis.map.qq.com/ws/location/v1/ip?output=json&key=2J5BZ-V6JK4-SHSUT-XGMGV-VRHM7-TBFKU&ip='.$ipaddress));
// $country = $login_addr_arra->result->ad_info->nation;
// if(($country !== '中国') && !strstr($lang, 'zh'))
// {
// header("ip地址为国外");
// echo 'ip地址为国外';
// exit;
// }
// ?>
<?php
include('./confing/common.php');
?>
<!--ip屏蔽-->
<?php
// $client_sys_language = $_SERVER["HTTP_ACCEPT_LANGUAGE"]; // system language
// if (preg_match ("/^zh-cn/i",$client_sys_language)) {
// // echo "<div col-6><H1>Forbidden</H1>You don’t have permission to access /on this server.<P><P>Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.<HR><ADDRESS>禁止中国大陆访问</ADDRESS></div>";
// echo 
// "<style>
// @import url('https://fonts.googleapis.com/css?family=Share+Tech+Mono|Montserrat:700');
 
// * {
//     margin: 0;
//     padding: 0;
//     border: 0;
//     font-size: 100%;
//     font: inherit;
//     vertical-align: baseline;
//     box-sizing: border-box;
//     color: inherit;
// }
 
// body {
//     background-image: linear-gradient(120deg, #4f0088 0%, #000000 100%);
//     height: 100vh;
// }
 
// h1 {
//     font-size: 45vw;
//     text-align: center;
//     position: fixed;
//     width: 100vw;
//     z-index: 1;
//     color: #ffffff26;
//     text-shadow: 0 0 50px rgba(0, 0, 0, 0.07);
//     top: 50%;
//     -webkit-transform: translateY(-50%);
//             transform: translateY(-50%);
//     font-family: 'Montserrat', monospace;
// }
 
// div {
//     background: rgba(0, 0, 0, 0);
//     width: 70vw;
//     position: relative;
//     top: 50%;
//     -webkit-transform: translateY(-50%);
//             transform: translateY(-50%);
//     margin: 0 auto;
//     padding: 30px 30px 10px;
//     box-shadow: 0 0 150px -20px rgba(0, 0, 0, 0.5);
//     z-index: 3;
// }
 
// P {
//     font-family: 'Share Tech Mono', monospace;
//     color: #f5f5f5;
//     margin: 0 0 20px;
//     font-size: 17px;
//     line-height: 1.2;
// }
 
// span {
//     color: #f0c674;
// }
 
// i {
//     color: #8abeb7;
// }
 
// div a {
//     text-decoration: none;
// }
 
// b {
//     color: #81a2be;
// }
 
// a.avatar {
//     position: fixed;
//     bottom: 15px;
//     right: -100px;
//     -webkit-animation: slide 0.5s 4.5s forwards;
//             animation: slide 0.5s 4.5s forwards;
//     display: block;
//     z-index: 4
// }
 
// a.avatar img {
//     border-radius: 100%;
//     width: 44px;
//     border: 2px solid white;
// }
 
// @-webkit-keyframes slide {
//     from {
//         right: -100px;
//         -webkit-transform: rotate(360deg);
//                 transform: rotate(360deg);
//         opacity: 0;
//     }
//     to {
//         right: 15px;
//         -webkit-transform: rotate(0deg);
//                 transform: rotate(0deg);
//         opacity: 1;
//     }
// }
 
// @keyframes slide {
//     from {
//         right: -100px;
//         -webkit-transform: rotate(360deg);
//                 transform: rotate(360deg);
//         opacity: 0;
//     }
//     to {
//         right: 15px;
//         -webkit-transform: rotate(0deg);
//                 transform: rotate(0deg);
//         opacity: 1;
//     }
// }
// </style>
// </head>
// <body>
// <h1>403</h1>
// <div><p>&gt; <span>ERROR CODE</span>: '<i>HTTP 403 Forbidden</i>'</p>
// <p>&gt; <span>ERROR DESCRIPTION</span>: '<i>中国大陆用户没有在此服务器上访问此页面的权限！</i>'</p>
// <p>&gt; <span>ERROR POSSIBLY CAUSED BY</span>: [<b>
// 我们已经记录了你的IP，不要搞事情哦！</b>...]</p>
// <p>&gt; <span>SOME PAGES ON THIS SERVER THAT YOU DO HAVE PERMISSION TO ACCESS</span>: [如果您是内部人员，请联系技术获取访问权限！]</p><p>&gt; <span>HAVE A NICE DAY SIR DragonersLi :-)</span>祝您开心每一天！！</p>
// </div>
// <script>
// var str = document.getElementsByTagName('div')[0].innerHTML.toString();
// var i = 0;
// document.getElementsByTagName('div')[0].innerHTML ='';
 
// setTimeout(function() {
//     var se = setInterval(function() {
//         i++;
//         document.getElementsByTagName('div')[0].innerHTML = str.slice(0, i) + '|';
//         if (i == str.length) {
//             clearInterval(se);
//             document.getElementsByTagName('div')[0].innerHTML = str;
//         }
//     }, 10);
// },0);
// </script>

//  </body>";
// exit;
// }
?>
<!DOCTYPE html>
<html lang="zh">
<!--begin::Head-->

<head>
	<title><?=$conf['sitename']?> – 打造全网最优学习系统</title>
	<meta charset="utf-8">
	<meta name="keywords" content="<?=$conf['keywords'];?>" />
    <meta name="description" content="<?=$conf['description'];?>" />
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="shortcut icon" href="./logo.png">
	<!--begin::Fonts-->
	<link rel="stylesheet" href="index/static/css/css.css">
	<!--end::Fonts-->
	<!--begin::Global Stylesheets Bundle(used by all pages)-->
	<link href="index/static/css/plugins.bundle.css" rel="stylesheet" type="text/css">
	<link href="index/static/css/style.bundle.css" rel="stylesheet" type="text/css">
	<!--end::Global Stylesheets Bundle-->
</head>
<!--end::Head-->
<!--begin::Body-->

<body id="kt_body" class="auth-bg">
	<!--begin::Main-->
	<div class="d-flex flex-column flex-root">
		<!--begin::Authentication - Signup Welcome Message -->
		<div class="d-flex flex-column flex-column-fluid">
			<!--begin::Content-->
			<div class="d-flex flex-row-fluid flex-column flex-column-fluid text-center p-10 py-lg-20">
				<!--begin::Logo-->
				<a href="/" class="pt-lg-20 mb-12">
					<img alt="Logo" src="index/static/picture/logo.png" class="h-100px">
				</a>
				<!--end::Logo-->
				<!--begin::Wrapper-->
				<div class="text-center">
					<!--begin::Logo-->
					<h1 class="fw-bolder fs-5qx text-dark mb-7">欢迎使用笨笨狗</h1>
					<!--end::Logo-->
					<!--begin::Message-->
					<div class="fw-bold fs-2 text-gray-400 mb-15">The price of wisdom is contradiction.<br>This is the trick life plays on philosophy of life.
					</div>
					<!--end::Message-->
					<!--begin::Link-->
					<a href="/index/index" class="btn btn-lg btn-primary">开始体验</a>
					<!--end::Link-->
				</div>
				<!--end::Wrapper-->
			</div>
			<!--end::Content-->
			<!--begin::Illustration-->
			<div
				class="d-flex flex-row-auto bgi-no-repeat bgi-position-x-center bgi-size-contain bgi-position-y-bottom min-h-150px min-h-lg-350px"
				style="background-image: url(index/static/image/7.png)"></div>
			<!--end::Illustration-->
		</div>
		<!--end::Authentication - Signup Welcome Message-->
	</div>
	<!--end::Main-->
	<!--begin::Javascript-->
	<!--begin::Global Javascript Bundle(used by all pages)-->
	<script src="index/static/js/plugins.bundle.js"></script>
	<script src="index/static/js/scripts.bundle.js"></script>
	<!--end::Global Javascript Bundle-->
	<!--end::Javascript-->
</body>
<!--end::Body-->
<iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=0 height=0 src="//music.163.com/outchain/player?type=2&id=2028570351&auto=1&height=32"></iframe>
</html>
<script type="text/javascript" src="https://ip.ws.126.net/ipquery"></script>
 <script>
// var province=localAddress.province;//获取所在省，比如陕西省
// var city=localAddress.city;//获取所在市，比如西安市
// //判断省
// if(province.indexOf('天津')  != -1){
//     alert("禁止访问");//不想有提示，可以删除此行
//     location.href="http://baidu.com"; //要跳转的地址，想要为空将网址替换为about:blank
// 　}
// </script>
<!--ip屏蔽-->
 
<?php
// $ipaddress = $_SERVER['REMOTE_ADDR'] == '::1' ? '127.0.0.1' : $_SERVER['REMOTE_ADDR'];
// $lang = strtolower($_SERVER['HTTP_ACCEPT_LANGUAGE']);
// $login_addr_arra = json_decode(file_get_contents('https://apis.map.qq.com/ws/location/v1/ip?output=json&key=2J5BZ-V6JK4-SHSUT-XGMGV-VRHM7-TBFKU&ip='.$ipaddress));
// $country = $login_addr_arra->result->ad_info->nation;
// // if(($country !== '美国') && !strstr($lang, 'lg'))
// // {
// // header("ip地址为国外");
// // echo 'ip地址为国外';
// // exit;
// // }

?>
 
<!--ip屏蔽-->
<script>
    const handler = setInterval(function () {
  console.clear()
  const before = new Date()
  debugger
  const after = new Date()
  const cost = after.getTime() - before.getTime()
  if (cost > 100) {
  }
}, 1)
//屏蔽右键菜单
document.oncontextmenu = function (event) {
  if (window.event) {
    event = window.event
  }
  try {
    var the = event.srcElement
    if (
      !(
        (the.tagName == 'INPUT' && the.type.toLowerCase() == 'text') ||
        the.tagName == 'TEXTAREA'
      )
    ) {
      return false
    }
    return true
  } catch (e) {
    return false
  }
}
//禁止f12
function fuckyou() {
  window.open('/', '_blank') //新窗口打开页面
  window.close() //关闭当前窗口(防抽)
  window.location = 'about:blank' //将当前窗口跳转置空白页
}
//禁止Ctrl+U
var arr = [123, 17, 18]
;(document.oncontextmenu = new Function('event.returnValue=false;')), //禁用右键
  (window.onkeydown = function (e) {
    var keyCode = e.keyCode || e.which || e.charCode
    var ctrlKey = e.ctrlKey || e.metaKey
    console.log(keyCode + '--' + keyCode)
    if (ctrlKey && keyCode == 85) {
      e.preventDefault()
    }
    if (arr.indexOf(keyCode) > -1) {
      e.preventDefault()
    }
  })

</script>